#include #include #include using namespace std; int main() { int size1,size2; cin>>size1>>size2; //diavazoume ta megethi pinakwn// int ar1[size1],ar2[size2]; for (int i=0;i>ar1[i]; //diavazoume tous arithmous opws tha ginontan automata sto programma tou zhthmatos 2// for (int i=0;i>ar2[i]; //diavazoume tous arithmous opws tha ginontan automata sto programma tou zhthmatos 2// if (size1<=size2) //lynw to problhma se periptwsh pou size1<=size2// { int sum[size2]; for (int i=0;i=1;i--) { if (sum[i]>=10) //opou yparxei kratoumeno// { sum[i]=sum[i]-10; sum[i-1]++; } } if (sum[0]>=10) //apotelesmata// { cout<<"yperxilish akeraiou"<=1;i--) { if ( sum[i]>=10) //opou yparxei kratoumeno// { sum[i]=sum[i]-10; sum[i-1]++; } } if (sum[0]>=10) //apotelesmata// { cout<<"yperxilish akeraiou"<